﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="RunProcess.aspx.cs" Inherits="WebCrawler.ProcessingFiles.RunProcess" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    $(document).ready(function () {

        $(".showtext").find('a').each(function () {

            
                var linktext = $(this).text();
                var linkhref = $(this).attr('href');

                var dataString = "link=" + linktext + "&url=" + linkhref;
                //$(".URLS").append("<span style=color:blue>" + linkhref + "</span>,");

            if (dataString) {

                    $.ajax({
                        type: "GET",
                        url: "RunProcess.aspx?" + dataString,
                        data: dataString,
                        cache: false,
                        success: function (html) {
                            $(".URLS").append("<span style=font-size:small>[" + linkhref + "]</span>,");
                        }

                    });
            }


            });


    });
    </script> 

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:Label ID="lbl_Processing" ForeColor="Red" runat="server" />
<asp:Label ID="showtext" runat="server" />
<br />
<asp:Timer ID="timer_Page" runat="server" Interval="850000" OnTick="GetNextPage">
</asp:Timer>
</asp:Content>
